package com.zqh.usersave.controller;

import com.zqh.myfmmall.entity.Users;
import com.zqh.myfmmall.result.Result;
import com.zqh.usersave.service.UserSaveService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-18 2:15
 */
@RestController
@RequestMapping("user")
public class UserSaveController{
    @Resource
    private UserSaveService userSaveService;

    @PostMapping("create")
    public Result create(@RequestBody Users user){
        return userSaveService.saveUser(user);
    }
}
